package cn.wym.ymbill.service.impl

import cn.wym.ymbill.mapper.BillPlanStepBeenMapper
import cn.wym.ymbill.model.BillPlanStepBeen
import cn.wym.ymbill.service.IBillPlanStepService
import org.springframework.stereotype.Service
import javax.annotation.Resource

/**
 * 账单计划步长
 */
@Service("BillPlanStepService")
class BillPlanStepService : IBillPlanStepService {
    
    @Resource
    val billPlanStepBeenMapper: BillPlanStepBeenMapper? = null

    override fun deleteByPrimaryKey(id: Int): Int {
        return billPlanStepBeenMapper?.deleteByPrimaryKey(id)?: -1
    }

    override fun insert(record: BillPlanStepBeen): Int {
        return billPlanStepBeenMapper?.insert(record)?: -1
    }

    override fun insertSelective(record: BillPlanStepBeen): Int {
        return billPlanStepBeenMapper?.insertSelective(record)?: -1
    }

    override fun selectByPrimaryKey(id: Int): BillPlanStepBeen? {
        return billPlanStepBeenMapper?.selectByPrimaryKey(id)
    }

    override fun updateByPrimaryKeySelective(record: BillPlanStepBeen): Int {
        return billPlanStepBeenMapper?.updateByPrimaryKeySelective(record)?: -1
    }

    override fun updateByPrimaryKey(record: BillPlanStepBeen): Int {
        return billPlanStepBeenMapper?.updateByPrimaryKey(record)?: -1
    }

}